package decoratorPattern;

public class Main {
    public static void main(String[] args) {
        Coffee coffee = new Coffee();
        System.out.println(coffee.getDescription() + " : "+ coffee.cost());

        //通过装饰器模式，添加功能
        MilkDecorator decorator = new MilkDecorator(coffee);
        System.out.println(decorator.getDescription() + " : "+ decorator.cost());


    }
}
